#include "stdafx.h"
#include "nginx.h"

static BOOL GetHomePath(LPCH lpFilename, DWORD nSize)
{
	LPCH pc;
	GetModuleFileName(NULL, lpFilename, nSize);
	pc = strrchr(lpFilename, '\\');
	*pc = 0x00;
	return TRUE;
}

int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance, LPTSTR lpCmdLine,int nCmdShow)
{
	CHAR szHomePath[1024];
	GetHomePath(szHomePath, 1024);
	SetCurrentDirectory(szHomePath);
	DoNginxBox(NULL);
	return 0;
}
